package com.dddframework.web.interceptor;

import org.springframework.core.Ordered;
import org.springframework.web.servlet.HandlerInterceptor;

/**
 * 基础拦截器
 * 实现该接口并定义为@Component
 */
public abstract class BaseWebInterceptor implements HandlerInterceptor, Ordered {
    public String[] pathPatterns() {
        return new String[]{"/**"};
    }

    public String[] excludePathPatterns() {
        return new String[]{"/error"};
    }
}